package com.ruoyi.system.service.impl;

import com.ruoyi.common.utils.SmsUtils;
import com.ruoyi.system.service.ISendMsgServer;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author wsliupan
 * @title: SendMsgServerImpl
 * @projectName qingsitang
 * @description: TODO
 * @date 2021-7-2311:24
 */
@Service
public class SendMsgServerImpl implements ISendMsgServer {

    @Override
    @Async("threadPoolTaskExecutor")
    public Boolean sendSms(String phoneNumbers, String TemplateParam) {
        return SmsUtils.sendSms(phoneNumbers,TemplateParam);
    }
}
